<div id="maincontent">
	<div id="maincontent_inner">
		<div id="sidebar">
			<div class="menu single">
				<ul>
					<li><a href="#">车辆基础信息库管理</a>
						<ul>
							<li><a href="<?php echo site_url("c=car_info&m=index"); ?>">车辆信息管理</a></li>
							<li><a href="<?php echo site_url("c=car_brand&m=index"); ?>">车辆品牌管理</a></li>
							<li><a href="<?php echo site_url("c=car_series&m=index"); ?>">车辆系列管理</a></li>
							<li  class="current"><a href="<?php echo site_url("c=car_type&m=index"); ?>">车辆类型管理</a></li>
							<li><a href="<?php echo site_url("c=car_structure&m=index"); ?>">车辆结构管理</a></li>
						</ul>
					</li>
				</ul>
			</div>
		</div>
		<div id="content">
			<div class="title">车辆类型管理</div>
			<div class="infoarea">
				<div class="box">&nbsp;
				<div style="float:right"><input type="submit" class="btn" value="添加车辆类型" onclick="gotoPage('<?php echo site_url("c=car_type&m=add"); ?>');" /></div>
				</div>
				<table border="0" cellspacing="0" cellpadding="0" width="100%" class="stylized">
					<tr>
						<th>类型名称</th>
						<th>操作</th>
					</tr>
					 <?php 
					if($count)
					{
					foreach($list as $type){ ?>
					<tr>
						<td><?php echo $type['typename']; ?></td>
						 
						<td>  <a href="<?php echo site_url("c=car_type&m=edit&typeid=$type[typeid]"); ?>">编辑</a> | <a href="<?php echo site_url("c=car_type&m=delete&typeid=$type[typeid]"); ?>" onclick="return confirm('确认要删除当前记录吗？')">删除</a></td>
					</tr>
					 <?php }
					}
					else
					{?>

					<tr>
						<td colspan="2"> 无记录 </td>
					</tr>
					 <?php  
					}
					 ?>
 
					 
				</table>
				<div id="pager" class="pagebar">
					 <?php  
					 echo $pagelink;
					 ?>
					
				</div>
			</div>
		</div>
	</div>
</div>
